<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/messages.jsp"%>
<%@ include file="/commons/commonEdit.jsp" %>
<%@ include file="/commons/validation.jsp" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script language="JavaScript"  src="${ctx}/scripts/div/common.js"></script>
<script type="text/javascript">
var houseNumber = null;
var houseIds= null;
function showLateFeeDetail(id){
	var url = "${ctx}/charge_cashieringAction.do?method=getLateFeeDetail&tractionId="+id;
    top.windowOpen(url, "lateFeeDetail", "${key.charge_chargeDetailMain_latefee}", 300, 750);
}
function openRecoredAccount(){
	var url = "${ctx}/charge_cashieringAction.do?method=initRecordedAccountAdd&houseId=${houseId}&isVirtual=${isVirtual}&accountId=${accountId}&proRightId=${proRightId}&chargeSelect=${chargeSelect}";
    common_submit("","noAskWindow",url,'${key.charge_chargeDetailMain_recordAccount}',470,530);
    //top.windowOpen(url, "recordAccount", "${key.charge_chargeDetailMain_recordAccount}", 440, 530);
}
function openPayBill(){
	//var url = "${ctx}/charge_cashieringAction.do?method=initPayBillsAdd&accountId=${accountId}&accountHouseId=${houseId}&isVirtual=${isVirtual}";
	 var url = "${ctx}/charge_cashieringAction.do?method=initPayBillsMain&accountId=${accountId}&accountHouseId=${houseId}&isVirtual=${isVirtual}";
    //common_submit("", "noAskWindow",url, "${key.charge_chargeDetailMain_paybill}", 550, 700);
    top.windowOpen(url, "paybill", "${key.charge_chargeDetailMain_paybill}", 550, 700);
}
function openreCalculation(){
	var url = "${ctx}/charge_calculateAction.do?method=initRecalculation&houseId=${houseIds}&houseNumber=${houseNumbers}&isVirtual=${isVirtual}&accountId=${accountId}&proRightId=${proRightId}&chargeSelect=${chargeSelect}";
    top.windowOpen(url, "reCalculation", "${key.charge_chargeDetailMain_recalculate}", 260, 450);
}

function addBetchSuspend(){
	var url="${ctx}/charge_cashieringAction.do?method=addSuspendBatch&accountId=${accountId}";
	var myAjax = new Ajax.Request(
                   url,
                   {method: 'post', parameters:"" , onComplete: showResponseSuspend}
                   );
}
function addUnChainSuspendBatch(){
	var url="${ctx}/charge_cashieringAction.do?method=unChainSuspendBatch&accountId=${accountId}";
	var myAjax = new Ajax.Request(
                   url,
                   {method: 'post', parameters:"" , onComplete: showResponseUnchain}
                   );
}
function showResponseUnchain(transport){
	ajaxSubmitException(transport.responseText);
	if(transport.responseText=="false"){
		FailureAlert('${key.doFalse}');
	}else{
		refresh(1);
	}
}
function showResponseSuspend(transport){
	ajaxSubmitException(transport.responseText);
	if(transport.responseText=="false"){
		FailureAlert('${key.doFalse}');
	}else{
		refresh(1);
	}
}
function showBatchSuspend(){
	AlarmConfirm('${key.charge_chargeDetailMain_tipSuspendBatch}',"connTabPanel","addBetchSuspend");
}
function showUnChainSuspendBatch(){
	AlarmConfirm('${key.charge_chargeDetailMain_tipunChainSuspendBatch}',"connTabPanel","addUnChainSuspendBatch");
}
function search(){
	 refresh(1);
}
function isShowButtom(){
	return "${isShowButtom}";
}
function init(){
	houseNumbers = '${houseNumbers}';
	houseIds = '${houseIds}';
}
function refresh(flag){
	if(flag == null || flag == undefined)
		flag = 1;
    document.getElementById("chargeDetailListFrame").src="${ctx}/charge_cashieringAction.do?method=initChargeDetailList&accountHouseId=${houseId}&accountId=${accountId}&periodId="+document.getElementById('periodId').value+"&stat="+document.getElementById('stat').value+"&flag="+flag;
}
function setPeriodStr(){
	$('periodStr').value =$('periodId').options[$('periodId').selectedIndex].text;
}
//打开退费主页面
function openRefundMain(){
	 var url = "${ctx}/charge_cashieringAction.do?method=initRefundMain&houseId=${houseId}&isVirtual=${isVirtual}&accountId=${accountId}&proRightId=${proRightId}&chargeSelect=${chargeSelect}";
    top.windowOpen(url, "refundMain", "${key.charge_chargeDetailMain_refund}", 550, 700);
}
</script>
</head>
<body onload="init()">
<div style="overflow:auto; height:400px;">
   <table width="100%" border="0" cellpadding="0" cellspacing="0">

   <tr>
      <td class="bg_toolBar">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td align="right"><!--------------------------右边图标01----------------------------------->
          		<form target="chargeDetailListFrame" name="chargeDetailSearchForm" method="post" action="${ctx}/charge_cashieringAction.do?method=initChargeDetailList&accountId=${accountId}&accountHouseId=${houseId}&flag=0">
          		<input type="hidden" name="periodStr" value="${periodStr}">
                <table border="0" align="left" cellpadding="0" cellspacing="1" id="search01">
                  <tr>
                    <td class="td_search" ><span class="grid align_left">${key.charge_chargeDetailMain_period}：</span></td>
                    <td class="td_search">
                        <pms:unitedSelect
								name="periodId"
                        		optionLabel="period"
                        		optionValue="keyword"
                        		selectText="${key.select}"
                        		dataList="${periodList}"
                        		style="width:110px;"
                        		onChange="setPeriodStr()"
                        		>
						</pms:unitedSelect>
                    </td>
                    <td class="td_search">${key.charge_chargeDetailMain_status}：</td>
                    <td width="6">
					<mypms:Sysrefcode  name="stat"
	              					 showTip="true"
	              					 code="FEE_TRANSACTION_STATUZ"
	              					 style="width:110px"
	              					 onchange=""
	              					 className="select-one-required"
	              					 selectValue="${status}"
	              					 >
	                </mypms:Sysrefcode>
					</td>
                    <td class="td_search"><table border="0" cellpadding="0" cellspacing="0">
                        <tr onclick="submit();">
                          <td class="buttonOffLeft" id="btn1_11"></td>
                          <td class="buttonOffMiddle" id="btn1_12" onblur="btn_change(1)" onMouseOver="btn_change_over(1)" onMouseOut="btn_change_out(1)"><img src="${ctx}/images/ico_searchico.gif" alt="" border="0" align="absmiddle">
                          ${key.search}</td>
                          <td class="buttonOffRight" id="btn1_13"></td>
                        </tr>
                    </table></td>
                  </tr>
                </table>
                </form>
            </td>
        </tr>
      </table></td>
    </tr>
    <tr>
      <td class="bg_toolBar"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td align="right">
		  <!--------------------------右边图标01----------------------------------->
		  <table border="0" cellpadding="0" cellspacing="0" id="ico1">
            <tr><c:if test="${isShowButtom}">
            <pms:AuthTag authName="charge_cashieringAction.do?method=initRecordedAccountAdd">
              <td class="toolbarico"><a href="javascript:openRecoredAccount();"  onClick="" onFocus="this.blur()"><img src="${ctx}/images/charge_rz.gif" border="0" align="absbottom" alt="${key.charge_chargeDetailMain_recordAccount}"/>&nbsp;${key.charge_chargeDetailMain_recordAccount}</a></td>
             </pms:AuthTag>
             <pms:AuthTag authName="charge_cashieringAction.do?method=initPayBillsAdd">
              <td class="toolbarico"><a href="javascript:openPayBill();" onClick=""onfocus="this.blur()"><img src="${ctx}/images/ico_zxsf_sqth.gif" alt="${key.charge_chargeDetailMain_paybill}" width="16" height="16" border="0" align="absbottom"/>&nbsp;${key.charge_chargeDetailMain_paybill}</a> </td>
      		  </pms:AuthTag>
      		  <pms:AuthTag authName="charge_cashieringAction.do?method=initRefundMain">
              <td class="toolbarico"><a href="javascript:openRefundMain();" onClick=""onfocus="this.blur()"><img src="${ctx}/images/ico_zxsf_sqth_jian.gif" alt="${key.charge_chargeDetailMain_refund}" width="16" height="16" border="0" align="absbottom"/>&nbsp;${key.charge_chargeDetailMain_refund}</a> </td>
      		  </pms:AuthTag>
      		  <pms:AuthTag authName="charge_cashieringAction.do?method=addSuspendBatch">
              <td class="toolbarico"><a href="javascript:showBatchSuspend();" onClick=""onfocus="this.blur()"><img src="${ctx}/images/charge_jcgq_p.gif" alt="${key.charge_chargeDetailMain_suspendBatch}" width="16" height="16" border="0" align="absbottom"/>&nbsp;${key.charge_chargeDetailMain_suspendBatch}</a> </td>
              </pms:AuthTag>
      		  <pms:AuthTag authName="charge_cashieringAction.do?method=unChainSuspendBatch">
              <td class="toolbarico"><a href="javascript:showUnChainSuspendBatch();" onClick=""onfocus="this.blur()"><img src="${ctx}/images/charge_guaqi_p.gif" alt="${key.charge_chargeDetailMain_unChainSuspendBatch}" width="16" height="16" border="0" align="absbottom"/>&nbsp;${key.charge_chargeDetailMain_unChainSuspendBatch}</a> </td>
      		  </pms:AuthTag>
      		  <!--
      		  <pms:AuthTag authName="charge_calculateAction.do?method=initRecalculation">
      		  <td class="toolbarico"><a href="javascript:openreCalculation();" onClick=""onfocus="this.blur()"><img src="${ctx}/images/chareg_ysjs_cs.gif" alt="${key.charge_chargeDetailMain_recalculate}"  border="0" align="absbottom" />&nbsp;${key.charge_chargeDetailMain_recalculate}</a></td>
              </pms:AuthTag>
              <td class="toolbar_line">|</td>
              <td class="toolbarico"><a href="javascript:;"  ><img src="${ctx}/images/ico_printer.gif" alt="${key.charge_chargeDetailMain_print}" width="16" height="16" border="0" align="absbottom"/></a></td>
               -->
           </c:if>
            </tr>
          </table></td>
        </tr>
      </table></td>
    </tr>
    <tr>
     <td valign="top">
				<iframe src="${ctx}/charge_cashieringAction.do?method=initChargeDetailList&accountHouseId=${houseId}&accountId=${accountId}&periodId=${periodId}&periodStr=${periodStr}&stat=${status}" name="chargeDetailListFrame" id="chargeDetailListFrame" width="100%"  height="400px"  frameborder="0" border="0"  scroll="no" ></iframe>
	</td></tr></table>
 </div>
</body>
</html>





































